<table class="table table-responsive" id="newDevelopments-table">
    <thead>
    <th>ID</th>
    <th>分类</th>
    <th>标题</th>
    <th>作者</th>
    <th>图片</th>
    <th>阅读量</th>
    <th>点赞数</th>
    {{--<th>Content</th>--}}
    <th colspan="3">操作</th>
    </thead>
    <tbody>
    @foreach($newDevelopments as $newDevelopment)
        <tr>
            <td>{!! $newDevelopment->id !!}</td>
            <td>{!! $newDevelopment->cate?$newDevelopment->cate->title:'' !!}</td>
            <td>{!! $newDevelopment->title !!}</td>
            <td>{!! $newDevelopment->author !!}</td>
            <td>@tpic($newDevelopment->pic)</td>
            <td>{!! $newDevelopment->read_num !!}</td>
            <td>{!! $newDevelopment->like_num !!}</td>
            <td>
                {!! Form::open(['route' => ['newDevelopments.destroy', $newDevelopment->id], 'method' => 'delete']) !!}
                <div class='btn-group'>
{{--                    <a href="{!! route('newDevelopments.show', [$newDevelopment->id]) !!}" class='btn btn-default btn-xs'><i class="glyphicon glyphicon-eye-open"></i></a>--}}
                    <a href="{!! route('newDevelopments.edit', [$newDevelopment->id]) !!}" class='btn btn-default btn-xs'><i class="glyphicon glyphicon-edit"></i></a>
                    {!! Form::button('<i class="glyphicon glyphicon-trash"></i>', ['type' => 'submit', 'class' => 'btn btn-danger btn-xs', 'onclick' => "return confirm('Are you sure?')"]) !!}
                </div>
                {!! Form::close() !!}
            </td>
        </tr>
    @endforeach
    </tbody>
</table>